package main

import (
	"log"
	"runtime"

	"gitee.com/xuender/oils/logs"
	"gitee.com/xuender/se/cmd"
)

func main() {
	if runtime.GOOS != "windows" {
		fl := logs.FileLogger("/var/tmp/se.log", "/var/tmp/error.log")
		defer fl.Close()
		logs.SetLogger(fl, logs.BaseLogger)
	}

	logs.SetFlags(log.LstdFlags | log.Lshortfile)
	cmd.Execute()
}
